package edu.sctu.practice.class01.zhangwang.day2015_10_14.text01;

/**
 * Created by Z_W on 2015/10/15.
 */
public class Again implements Runnable {
    @Override
    public void run() {
        while (true){
            System.out.println(Thread.currentThread().getName()+"在运行");
        }
    }

    public static void main(String[] args) {
        Again again = new Again();

        Thread thread = new Thread(again);
        thread.setDaemon(true); //死循环中线程操作已经设置为后台运行了。即可以运行完成。
        thread.start();
    }
}
